import { SharedEntity } from 'src/modules/shared/entities/shared.entity';
import { Entity, Column } from 'typeorm';
import { ObjectType, Field } from '@nestjs/graphql';

@ObjectType()
@Entity('role')
export class RoleEntity extends SharedEntity {
  @Field({description: '角色名称'})
  @Column({
    type: 'varchar',
    length: 50,
    name: 'name',
    comment: '角色名称',
  })
  name: string;
}